#include<iostream>
using namespace std;

template<class T>
void Swap(T& x, T& y)
{
	T tmp = x;
	x = y;
	y = tmp;
}
int main()
{
	int i = 1;
	int j = 2;
	Swap(i,j);
	cout << i  << " " << j << endl;
	return 0;
}